extends Spatial


# Declare member variables here. Examples:
# var a = 2
# var b = "text"

onready var selection_mark: Spatial = $SelectionMark

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass


func _on_Area_input_event(camera, event, click_position, click_normal, shape_idx):
	if event is InputEventMouseButton:
		if event.pressed and event.button_index == BUTTON_LEFT:
			if selection_mark.visible:
				selection_mark.hide()
			else:
				selection_mark.show()
